package com.by.mapper;

import com.by.common.dao.MyBaseMapper;
import com.by.entity.Sku;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface SkuMapper extends MyBaseMapper<Sku> {
    //批量保存sdk
    int batchSave(@Param("spuId") int spuId, @Param("skuList")List<Sku> skuList);

    //根据商品id查询sku列表
    List<Map> queryBySpu(int id);
}
